﻿using System;
using CardLogistics.Model.Basic;
using CardLogistics.Web.Components;

namespace CardLogistics.Web.MainPage.Basic.SysSuppliers
{
    public partial class Detail :BasePage
    {
        private static readonly CardLogistics.DAL.Basic.Basic_SuppliersData DAL = new CardLogistics.DAL.Basic.Basic_SuppliersData();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitControl();
            }
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public void InitControl()
        {
            
            string _key = Request.QueryString["id"];
            if (!string.IsNullOrEmpty(_key))
            {
                Basic_Suppliers sData = DAL.GetModel(_key);
                SetWebControls(this.Page, sData);
            }
            
        }
    }
}